﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="SuaDonHang.aspx.cs" Inherits="Admin_QuanLyDonDatHang_SuaDonHang" Title="Sửa đơn hàng" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <table width="98%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #c0c0c0">
                    <tr>
                        <th class="Title" align="left" colspan="2">
                            Sửa thông tin hàng hóa
                        </th>
                    </tr>
                    
                     <tr>
                        <td align="left" class="SpacerTd">
                            Mã đơn hàng</td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox ID="txtMaDH" runat="server" CssClass="textbox" Width="150px" 
                                MaxLength="4"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="txtMaDH" ErrorMessage="Bạn chưa nhập mã đơn hàng !"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd" style="height: 12px">
                            Tên mặt hàng</td>
                        <td align="left" class="SpacerTd" style="height: 12px">
                            <asp:DropDownList ID="ddlMaHH" runat="server" Height="22px" 
                                 Width="150px" 
                                >
                            </asp:DropDownList>
                           
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd">
                            Tên khách hàng</td>
                        <td align="left" class="SpacerTd">
                            <asp:DropDownList ID="DDL_KH" runat="server" Height="22px" Width="150px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="SpacerTd">
                            Số Lượng 
                        </td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox CssClass="textbox" ID="txtsoluong" runat="server" Columns="40" 
                                Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Bạn chưa nhập số lượng!"
                                ControlToValidate="txtsoluong"></asp:RequiredFieldValidator>
                                 <asp:RegularExpressionValidator ID="regexpThuTu0" runat="server"     
                                    ErrorMessage="Bạn chỉ được nhập số." 
                                    ControlToValidate="txtsoluong"     
                                    ValidationExpression="\d*" />
                        </td>
                    </tr>
                     <tr>
                        <td align="left" class="SpacerTd" valign="top">
                            Ngày đặt</td>
                        <td align="left" class="SpacerTd">
                            <asp:TextBox ID="txtngay" runat="server" CssClass="textbox" Height="20px" 
                                Width="151px" Enabled="False"></asp:TextBox>
                            <asp:LinkButton ID="lbCalendar" runat="server" onclick="lbCalendar_Click" 
                                BackColor="#FFFFCC" BorderColor="#993399" BorderStyle="Solid" BorderWidth="1px" 
                                ForeColor="Red"                                 >Calendar</asp:LinkButton>
                           
                            <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                                BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                                Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                                onselectionchanged="Calendar1_SelectionChanged" Visible="False" Width="200px">
                                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                                <SelectorStyle BackColor="#CCCCCC" />
                                <WeekendDayStyle BackColor="#FFFFCC" />
                                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <OtherMonthDayStyle ForeColor="#808080" />
                                <NextPrevStyle VerticalAlign="Bottom" />
                                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                                <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                            </asp:Calendar>
                           
                        </td>
                    </tr>
                    <tr>
                        <th colspan="2" class="Title" align="left">
                            <asp:Button ID="btnSuaDH" runat="server" onclick="btnSua_Click" Text="Sửa đơn hàng" 
                                CssClass="button" />
                            <input type="button" id="Back_AddNew" runat="server" value="Quay lại" class="button" onclick="javascript:history.go(-1)" />
                        </th>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

